package com.lzh.exer;

public class PersonTest {
	
	public static void main(String[] args) {
		
		Person p1 = new Person();
		
		p1.name="刘智豪";
		
		p1.age = 18;
		
		p1.sex = 1;
		
		p1.study();
		
		p1.showAge();
		
		int newAge = p1.addAge(2);
		
		System.out.println(p1.name+"的新年龄为："+newAge);
		
		System.out.println(p1.age);//20
		
		System.out.println("*****************");
		
		Person p2 = new Person();
		
		p2.showAge();
		p2.addAge(10);
		p2.showAge();
	}

}
